import { request } from "@/utils/axios"



/**
 * 机构保存基本信息
 * saveInformationForInstitution
 */
export function SaveInformationForInstitutionApi(data) {
    return request(
        {
            url: "/institution/saveInformationForInstitution",
            method: "POST",
            data: data,
        }
    );
}

/**
 * 添加/编辑 指导老师
 */
export function AddTeacherApi(data) {
    return request(
        {
            url: "/institution/addTeacher",
            method: "POST",
            data: data,
        }
    );
}

/**
 * 删除指导老师
 */
export function DeleteTeacherApi(params) {
    return request(
        {
            url: "/institution/deleteTeacher",
            method: "DELETE",
            params: params,
        }
    );
}

/**
 * 获取指导老师
 */
export function GetTeachersApi(params) {
    return request(
        {
            url: "/institution/getTeachers",
            method: "GET",
            params: params,
        }
    );
}


/**
 * 根据学生id获取学生基本信息
 */
export function GetStudentInfoApi(params) {
    return request(
        {
            url: "/institution/getStudentInfo",
            method: "GET",
            params: params,
        }
    );
}

/**
 * 参赛选手录入  |   修改学生基本信息
 */
export function PlayerEntryApi(data) {
    return request(
        {
            url: "/institution/playerEntry",
            method: "POST",
            data: data,
        }
    );
}

/**
 * 删除参赛选手
 */
export function DeleteStudentApi(params) {
    return request(
        {
            url: "/institution/deleteStudent",
            method: "DELETE",
            params: params,
        }
    );
}

/**
 * 机构获取学生列表  默认分页10条记录
 */
export function GetInformationApi(params) {
    return request(
        {
            url: "/institution/getStudents",
            method: "GET",
            params: params,
        }
    );
}


